package com.admin.service;

import com.admin.vo.ResultVO;
import com.admin.vo.upload.UploadVO;
import org.springframework.web.multipart.MultipartFile;

/**
 * 图片上传service
 *
 * @author yzl
 * @date 2021/09/14
 */
public interface UploadService {


    /**
     * 上传单个文件到 服务器
     *
     * @param file
     * @param fileType
     * @return
     */
    ResultVO<UploadVO> uploadFile(MultipartFile file, String fileType);

    /**
     * 上传文件到OSS
     * @param file
     * @param fileType
     * @return
     */
    ResultVO<UploadVO> uploadFileForOSS(MultipartFile file, String fileType);



}
